home *** CD-ROM | disk | FTP | other *** search
/ Champak 119 / (Vol 119) Nov 09 2010.iso / TGKI-109 / Games / how_to_make_mixed_vegetable_salad.swf / scripts / DefineSprite_572 / frame_2 / DoAction.as
Text File  |  2010-11-09  |  409b  |  25 lines

  1. stop();
  2. _root.ggt._visible = false;
  3. var i = 0;
  4. while(i <= 4)
  5. {
  6.    eval("knief" + i).onPress = function()
  7.    {
  8.       this.swapDepths(depths);
  9.       this.startDrag();
  10.    };
  11.    eval("knief" + i).onRelease = function()
  12.    {
  13.       if(!cakeHit.hitTest(this))
  14.       {
  15.          stopDrag();
  16.          depths++;
  17.       }
  18.    };
  19.    i++;
  20. }
  21. plyAgn.onPress = function()
  22. {
  23.    _parent.gotoAndPlay(2);
  24. };
  25.